package week5;

public class MediaProxy implements Element{
    private Element element;

    public MediaProxy(Element element){
        this.element = element;
    }
    public void Draw(){
        TransactionManager.begin();
        element.Draw();
        TransactionManager.commit();
    }
}